package com.wyh.Mapper;

import com.wyh.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface UserMapper {
    public List<User> getUserList();

    public User getUserById(int  id);

    public User getUserByName(String name);

    public int updateUser(User user);

    public int addUser(User user);

    public int deleteUser(int id);
}
